// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   MenuBindNav.java

package com.hfstu.ifs.model;

import com.hfstu.framework.model.Persistent;
import org.apache.commons.lang3.builder.ToStringBuilder;

// Referenced classes of package com.hfstu.ifs.model:
//			Menu, NavControl

public class MenuBindNav extends Persistent
{

	private Menu menu;
	private NavControl navControl;
	private String showNavName;
	private Integer orderIndex;

	public MenuBindNav()
	{
	}

	public Menu getMenu()
	{
		return menu;
	}

	public void setMenu(Menu menu)
	{
		this.menu = menu;
	}

	public NavControl getNavControl()
	{
		return navControl;
	}

	public void setNavControl(NavControl navControl)
	{
		this.navControl = navControl;
	}

	public String getShowNavName()
	{
		return showNavName;
	}

	public void setShowNavName(String showNavName)
	{
		this.showNavName = showNavName;
	}

	public Integer getOrderIndex()
	{
		return orderIndex;
	}

	public void setOrderIndex(Integer orderIndex)
	{
		this.orderIndex = orderIndex;
	}

	public String toString()
	{
		return ToStringBuilder.reflectionToString(this);
	}

	public String toJson()
	{
		StringBuilder json = new StringBuilder();
		json.append("{");
		json.append("'id':").append("'").append(super.getId()).append("',");
		json.append("'showNavName':").append("'").append(getShowNavName()).append("',");
		json.append("'menuId':").append("'").append(menu != null ? menu.getId() : "").append("',");
		json.append("'navControlId':").append("'").append(navControl != null ? navControl.getId() : "").append("',");
		json.append("'navControlName':").append("'").append(navControl != null ? navControl.getName() : "").append("',");
		json.append("'orderIndex':").append("'").append(getOrderIndex()).append("'");
		json.append("}");
		return json.toString();
	}
}
